package cn.itcast.demo.dao;

import cn.itcast.demo.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback implements UserClient {

    @Override
    public User queryUserById(Long userId) {

        User user = new User();
        user.setId(userId);
        user.setName("使用feign查询失败，请稍后重试");
        return user;
    }
}
